<?php
/* @var $this EstablishmentController */
/* @var $model Establishment */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'establishment-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'type_of_establishment'); ?>
		<?php echo $form->dropDownlist($model, 'type_of_establishment',$model->getType_of_establishment() ,
		array('prompt' => 'Select a Type of Establishment',)); ?>
		<?php echo $form->error($model,'type_of_establishment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'establishment_name'); ?>
		<?php echo $form->textArea($model,'establishment_name',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'establishment_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'building_owner'); ?>
		<?php echo $form->textField($model,'building_owner',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'building_owner'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address_street'); ?>
		<?php echo $form->textArea($model,'address_street',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'address_street'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'baranggay'); ?>
		<?php echo $form->dropDownlist($model, 'baranggay',$model->getBaranggay() ,
		array('prompt' => 'Select a Baranggay',)); ?>
		<?php echo $form->error($model,'baranggay'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->